$(function () {

    getReviewers({});

    // 初始化页面上的 datetimepicker
    insDatetimePicker('.is-date');

    // 监听金额变化
    $('.loan-amount').bind('input propertychange', function (e) {
        var current_val = parseFloat($(this).val());
        if (current_val) {
            var uppercase_loan_amount = Arabia_to_Chinese(current_val);
            $('.uppercase-loan-amount').val(uppercase_loan_amount);
        } else {
            $('.uppercase-loan-amount').val('');
        }
    });

    var timeoutId = 0;

    $('#loanAmount').off('keyup').on('keyup', function (event) {
        var curValue = $(this).val();
        clearTimeout(timeoutId);
        timeoutId = setTimeout(function () {
            getReviewers({
                loanAmount: curValue
            });
        }, 500);
    });

});